package com.young4j.springdemo.config.bindValue;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author yf
 * @Date 2018/12/26 19:27
 **/
@Component
@ConfigurationProperties(prefix = "student")
public class BindValueStudent {
    private Long id;
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "BindValueStudent{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
